
export interface RoleStatusType {
  status: number
  roleId: string
}
export interface RoleListType extends RoleStatusType{
  roleName: string
  role_order: number
}

export interface RoleSaveType {
  roleName: string
  role_order: number
  status: number
}

export interface RoleFormDateType {
  roleName: string
}
interface RoleUserModalListType {
  roleId: string
  userId: number
}
export interface RoleUserModalType {
  roleId: string
  list: RoleUserModalListType[]
}
interface RoleMenuModalListType {
  roleId: string
  menuId: string
}
export interface RoleMenuModalType {
  roleId: string
  list: RoleMenuModalListType[]
}

export const roleColumns = [
  {
    title: "角色ID",
    key: "roleId",
    align: 'center'
  },
  {
    title: "角色名称",
    key: "roleName",
    align: 'center'
  },
  {
    title: "排序",
    key: "role_order",
    align: 'center'
  },
]


export const roleUserModalColums = [
  {
    type: 'selection',
  },
  {
    title: "用户名称",
    key: "username",
    align: 'center'
  },
  {
    title: "邮箱",
    key: "email",
    align: 'center'
  },
  {
    title: "电话",
    key: "user_phone",
    align: 'center'
  },
]
